package edu.whu.puppygo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import edu.whu.puppygo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import java.time.LocalDate;

/**
 *
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class Post extends BaseEntity {
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("用户名称")
    private String nickname;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("图片")
    private String imageUrl;
    @ApiModelProperty("正文")
    private String content;
}
